import request from '@/utils/request'

// 查询出入库任务列表
export function listMdIoTask(query) {
  return request({
    url: '/storage/mdIoTask/list',
    method: 'get',
    params: query
  })
}

// 查询出入库任务详细
export function getMdIoTask(ioTaskId) {
  return request({
    url: '/storage/mdIoTask/' + ioTaskId,
    method: 'get'
  })
}

// 新增出入库任务
export function addMdIoTask(data) {
  return request({
    url: '/storage/mdIoTask',
    method: 'post',
    data: data
  })
}

// 修改出入库任务
export function updateMdIoTask(data) {
  return request({
    url: '/storage/mdIoTask',
    method: 'put',
    data: data
  })
}

// 删除出入库任务
export function delMdIoTask(ioTaskId) {
  return request({
    url: '/storage/mdIoTask/' + ioTaskId,
    method: 'delete'
  })
}
